package com.dayang.homemaking.common.core.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author: dayang
 * @since: 2024/9/14
 * @description:
 */
@Data
public class PageResult<T> {
    /**
     * 总记录数
     */
    @Schema(description = "总记录数")
    private Long total;

    /**
     * 总页数
     */
    @Schema(description = "总页数")
    private Long pages;

    /**
     * 当前页数据
     */
    @Schema(description = "当前页数据")
    private List<T> list;
}
